<?php

class Countries extends HTech_Db_Table
{
    protected $_name     = 'view_countries';
    protected $_primary  = 'CountryId';
    
    protected function _setGridMetadata()
    {
        $this->_gridMetadata['title'] = $this->translate("Countries");
        $this->_gridMetadata['onClick'] = 'admin.country.add';
        $this->_gridMetadata['headers'] = array
            (
                array('CountryId',         50, $this->translate("Id"),             'Number'),
                array('Code',             100, $this->translate("Code"),           'String'),
                array('Country',          200, $this->translate("Country"),        'String'),
                array('LastEditDate',     150, $this->translate("Last edit date"), 'DateTime', 'Date'),
                array('LastEditFullName', 200, $this->translate("Last edit user"), 'String')
            );
        return $this;
    }
}